package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 orders
 * 
 * @author wsy
 * @date 2024-06-28
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 用户地址 */
    @Excel(name = "用户地址")
    private String userAddress;

    /** 订单总费用 */
    @Excel(name = "订单总费用")
    private BigDecimal cost;

    /** 订单详情信息 */
    private List<OrderDetails> orderDetailsList;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserAddress(String userAddress) 
    {
        this.userAddress = userAddress;
    }

    public String getUserAddress() 
    {
        return userAddress;
    }
    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }

    public List<OrderDetails> getOrderDetailsList()
    {
        return orderDetailsList;
    }

    public void setOrderDetailsList(List<OrderDetails> orderDetailsList)
    {
        this.orderDetailsList = orderDetailsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userName", getUserName())
            .append("userAddress", getUserAddress())
            .append("cost", getCost())
            .append("orderDetailsList", getOrderDetailsList())
            .toString();
    }
}
